package com.example.project.service.impl;

import com.example.project.dao.IRecordDao;
import com.example.project.entity.Record;
import com.example.project.service.IRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
/*
编写者：王住泽
 */
@Component
public class IRecordServiceImpl implements IRecordService {
    @Autowired
    private IRecordDao iRecordDao;
    @Override
    public int insertRecord(Record record) {
        return iRecordDao.insertRecord(record);
    }

    @Override
    public int deleteRecord(Record record) {
        return iRecordDao.deleteRecord(record);
    }

    @Override
    public List<Record> getAllRecord(Record record) {
        return iRecordDao.getAllRecord(record);
    }

    @Override
    public int updateRecord(Record record) {
        return iRecordDao.updateRecord(record);
    }

    @Override
    public Record getRecord(Record record) {
        return iRecordDao.getRecord(record);
    }
}
